import { req_info_increase_type } from '../../../../../../../type/api/increase_type/Classes/cla_req_info_increase_type';
import { describe_cur_user_upload_self_type } from './Classes/cla_describe_cur_user_upload_self_type';
import { get_db_cur_user_type } from './Func/get_db_cur_user_type';

/**
 * 给当前 用户 日志表 --私有 类型
 *
 * 添加 一条 日志信息
 */
export function log_cur_user_increase_self_type(
  cur_info: req_info_increase_type
) {
  let log_db_cur_user_self_type = get_db_cur_user_type(cur_info);

  let insert_info = new describe_cur_user_upload_self_type(cur_info);

  log_db_cur_user_self_type.insertOne(insert_info);
}
